<template>
  <div class="code-home">
    <img :style="computeStyle" src="../../assets/img/erweima.png"/>
  </div>
</template>

<script>
import '../../assets/css/index.less'
export default {
  name: 'two-code',
  computed: {
    computeStyle() {
      return { height: (1206*this.clientWidth/750)>this.clientHeight?this.clientHeight+"px":(1206*this.clientWidth/750)+"px" }
    },
  },
  data () {
    return {
      clientHeight: document.documentElement.clientHeight,
      clientWidth: document.documentElement.clientWidth,
    }
  },
  mounted() {
    this.clientHeight = document.documentElement.clientHeight;
    this.clientWidth = document.documentElement.clientWidth;
  },
}
</script>